<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="toTop" content="true">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="./Public/Home/css/cata.css" />
<style type="text/css">
	    	#page{
	    		float: right;
	    		margin-right: 20px;
	    		list-style: none;
	    		height: 30px;
	    	}
	    </style>
<!--头部公用部分载入-->
<script type="text/javascript" src="./Public/Home/js/jquery-1.8.2.min.js"></script>
<!--<script type="text/javascript" src="./Public/Home/js/jquery.1.7.2-min.js"></script>-->
<script type="text/javascript" src="./Public/Home/js/js.js"></script>

</head>
<body>
	
	<!-- 顶部开始 -->
<div id="top">
   <div class="topall">
       <a class="topallleft1" href="http://127.0.0.1/project/index.php?m=Home&c=Index&a=index">商城首页</a>
       <a class="topallleft2" href="">玩货</a>
                       
       <span class='topallleft3'>
       <a href="http://127.0.0.1/project/index.php?m=Home&c=Login&a=index" class="login">登录</a>
       <a href="http://127.0.0.1/project/index.php?m=Home&c=Reg&a=index" class="reg">注册</a>  
       </span>
              <span class='link'>|</span>
       <span class='topallleft3'>
       <a href="http://127.0.0.1/project/index.php?m=Home&c=Orderlist&a=index" class="reg">我的订单</a>     
       </span>
       <span class='link'>|</span>
       <span class='topallleft3'>
       <a href="" class="reg">我的卖家</a>     
       </span>
       <span class='link'>|</span>
       <span class='topallleft3'>
       <a href="" class="reg">帮助中心</a>     
       </span>
       <span class='link'>|</span>
       <span class='topallleft4'>客服电话 400-810-0580</span>
   </div>	
</div>
<!-- 顶部结束 -->
<!-- 搜索区域开始 -->
<div id="search">
   <div class="searchleft">
   	  <a href=""class="searchlogo"></a>
   <div class="searchka">
  	 <form name="" action="" target="">
  	   <div class="searchkatext">
  	     <input name="" value="" type="text">
  	   </div>
  	   <div class="searchkasubmit">
  	     <input value="搜&nbsp;&nbsp;&nbsp;索" type="submit">
  	   </div>
  	   </form>
  	   <ul class="searchgjz">
	  	   <li><a href="">GoPro</a></li>
	  	   <li><a href="">大疆</a></li>
	  	   <li><a href="">PHILIPS电动牙刷</a></li>
	  	   <li><a href="">演唱会门票</a></li>
	  	   <li><a href="">20元海淘券</a></li>
  	   </ul>
  	   
   </div>
                       
     <a href="http://127.0.0.1/project/index.php?m=Home&c=Cart&a=index&cmid=0" class="searchgwc"><i><em id='gwc' style="overflow: hidden;">0</em></i>购物车</a>
          </div>
</div>
<!-- 搜索区域结束 -->

<!-- 导航分类开始 -->
<div id="nav">
	<div class="navall">
		<ul>
			<li><a href="index.php"  >首页</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=1" >影视周边</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=2" >数码IT</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=3" >图书用品</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=4" >个人美妆</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=5" >服饰配件</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=6" >小家电</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=7" >票务演出</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=8" >食品</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=9" >日用百货</a></li>
						<li><a href="http://127.0.0.1/project/index.php?m=Home&c=Cata&a=index&cid=10"                 class="nav1"
               >其他</a></li>
					</ul>
	</div>
</div>
<!-- 导航分类结束 -->

<!-- 轮播图开始 -->
<?php foreach ($comdata as $k=>$v){?>
<?php if($k==0){?>
                
<div id="scroll">
	<div style="margin-left: -260px;">
        <a href=""><img width="1609px" style="overflow: hidden;" src="./Public/Home/img/<?php echo $v['type_tid']?>.jpg" alt="" /></a>
    </div>
</div>

               <?php }?>
<?php }?>
<!-- 轮播图结束 -->

<script type="text/javascript">
	$(function(){
		var b="<?php echo U('Cata/index',array('cid'=>$_GET['cid'],'bid'=>Q('get.bid',0,'intval')))?>";

		$('.mrpxx').attr('href',b);
		$('.jgpxx').click(function(){
			$(this).attr('href',b+'&o=1');
		})
		$('.jgpxx1').click(function(){
			$(this).attr('href',b+'&o=2');
		})
		$('.jgpxx2').click(function(){
			$(this).attr('href',b+'&o=3');
		})
		
	})
</script>


<!--主题区域开始-->
<div id="sort">
	<ul class="sortname">
		<li><a href="" class="mrpxx">默认排序</a></li>
		<li><a class="jgpxx" href="">价格<span></span></a></li>
		<li><a class="jgpxx1" href="">销量<span></span></a></li>
		<li><a class="jgpxx2" href="">新品<span></span></a></li>
	</ul>
</div>
<!--筛选开始-->
<div id="attr-box">
			<div class="attr">
				<ul>
					<?php if(!empty($bdata)){?>
                
					<li class="attr-border">
						<h3>品牌:</h3>
						<ul class="attr-content" style="width: 1080px;">
							<li>
								<a href="<?php echo U('Cata/index',array('cid'=>$_GET['cid'],'bid'=>0))?>"<?php if($bid==0){?>
                class="hover"
               <?php }?>>不限</a>
							</li>
                            <?php foreach ($bdata as $v){?>
							<li>
								<a href="<?php echo U('Cata/index',array('cid'=>$_GET['cid'],'bid'=>$v['bid']))?>"<?php if($bid==$v['bid']){?>
                class="hover"
               <?php }?>><?php echo $v['bname']?></a>
							</li>
							<?php }?>
						</ul>
					</li>
					
               <?php }?>
					
					<?php foreach ($goodsAttr as $k=>$v){?>
					<li class="attr-border">
						<h3><?php echo $v['name']?>:</h3>
						<ul class="attr-content" style="width: 1080px;">
							<?php 
								$temp = $param;
								$temp[$k] = 0;
							?>
							<li>
								<a href="<?php echo U('Cata/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'bid'=>Q('get.bid',0,'intval')))?>" <?php if($param[$k]==0){?>
                class="hover"
               <?php }?> >不限</a>
							</li>
                            <?php foreach ($v['value'] as $value){?>
							<?php 
								$temp[$k] = $value['sid'];
							?>
							<li>
								<a href="<?php echo U('Cata/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'bid'=>Q('get.bid',0,'intval')))?>"  <?php if($param[$k]==$value['sid']){?>
                class="hover"
               <?php }?>><?php echo $value['sability']?></a>
							</li>
							<?php }?>
						</ul>
					</li>
					<?php }?>
					
				</ul>
			</div>
		</div>
<!--筛选结束-->
<?php if(empty($comdata)){?>
                
<div style="width: 1190px;margin: 0 auto;">
	<p style="margin: 50px auto; font-size: 30px; padding-left: 360px;">该筛选没有商品，请重新筛选！！！</p>
</div>
<?php }else{?>
<div class="sortcate">
    <?php foreach ($comdata as $v){?>
	<div class="sortcate1">
		<div class="catetu"><a href="<?php echo U('List/index',array('cmid'=>$v['cmid']))?>"><img style="width: 220px; height: 220px;" src="<?php echo $v['columnplot']?>"/></a></div>
		<div class="sortcate2">
		   <a class="catezi" href="<?php echo U('List/index',array('cmid'=>$v['cmid']))?>"><?php echo $v['cmname']?></a>
		   <span class="caterate">￥ <?php echo $v['sptprice']?></span>
	    </div>
	    <div class="ment">
	    	<a class="mentzi" href="javescritp::">发现优奇</a>
	    </div>
	</div>
    <?php }?>
</div>

               <?php }?>

        <div id="page" style="clear: both;" >
			<div class="pagination"><?php echo $page?></div>
		</div>
<!--主题区域结束-->

<div style="clear: both;"></div>
	
</div>
<!--调用尾部公用-->
<!--尾部区域开始-->
<div id="footer">
	<div class="footertop">
		<div class="footertop1"></div>
		<hr />
		<div class="footertop2">
			<p>
				商家入驻：
				<a href="http://www.tudou.com">mall@tudou.com</a>
			</p>
			
			
		</div>
		<div class="footertop2 top3">
			<p>
				Copyright©2015 优酷 youku.com 版权所有 京ICP证060288号 | 
				<a href="http://www.youku.com">优酷商城用户服务协议</a>
			</p>
	</div>	
</div>
<!--尾部区域结束-->

</body>
</html>
